package cn.keniykey.mc.landterritory.landflag.api;

import javax.annotation.Nullable;

public enum ELandFlagType {
	PLAYER(0),
	//PERMISSION(1),
	SPECIAL(1),
	ADMIN(2),
	HIDDEN(3);
	
	private final int id;
	
	private ELandFlagType(int id) {
		this.id = id;
	}
	
	public int getID() {
		return this.id;
	}
	@Nullable
	public static ELandFlagType getELandType(int id) {
		for(ELandFlagType type : ELandFlagType.values()) {
			if (type.getID() == id) return type;
		}
		return null;
	}
}